import request from '@/utils/request'

// 查询打印模板列表
export function listPrintTemplet(query) {
  return request({
    url: '/system/printTemplet/list',
    method: 'get',
    params: query
  })
}

// 查询打印模板详细
export function getPrintTemplet(id) {
  return request({
    url: '/system/printTemplet/' + id,
    method: 'get'
  })
}

// 新增打印模板
export function addPrintTemplet(data) {
  return request({
    url: '/system/printTemplet',
    method: 'post',
    data: data
  })
}

// 修改打印模板
export function updatePrintTemplet(data) {
  return request({
    url: '/system/printTemplet',
    method: 'put',
    data: data
  })
}

// 删除打印模板
export function delPrintTemplet(id) {
  return request({
    url: '/system/printTemplet/' + id,
    method: 'delete'
  })
}

// 导出打印模板
export function exportPrintTemplet(query) {
  return request({
    url: '/system/printTemplet/export',
    method: 'get',
    params: query
  })
}